Optimal. Leaf size=149 \[ -\frac {3 (2 A-C) \, _2F_1\left (\frac {1}{2},\frac {2}{3};\frac {5}{3};\cos ^2(c+d x)\right ) \sin (c+d x)}{8 d (b \sec (c+d x))^{4/3} \sqrt {\sin ^2(c+d x)}}-\frac {3 B \, _2F_1\left (\frac {1}{6},\frac {1}{2};\frac {7}{6};\cos ^2(c+d x)\right ) \sin (c+d x)}{b d \sqrt [3]{b \sec (c+d x)} \sqrt {\sin ^2(c+d x)}}+\frac {3 C \tan (c+d x)}{2 b d \sqrt [3]{b \sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 149, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 39, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.128, Rules used = {16, 4132, 3857,
2722, 4131} \begin {gather*} -\frac {3 (2 A-C) \sin (c+d x) \, _2F_1\left (\frac {1}{2},\frac {2}{3};\frac {5}{3};\cos ^2(c+d x)\right )}{8 d \sqrt {\sin ^2(c+d x)} (b \sec (c+d x))^{4/3}}-\frac {3 B \sin (c+d x) \, _2F_1\left (\frac {1}{6},\frac {1}{2};\frac {7}{6};\cos ^2(c+d x)\right )}{b d \sqrt {\sin ^2(c+d x)} \sqrt [3]{b \sec (c+d x)}}+\frac {3 C \tan (c+d x)}{2 b d \sqrt [3]{b \sec (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 16
Rule 2722
Rule 3857
Rule 4131
Rule 4132
Rubi steps
\begin {align*} \int \frac {\sec (c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(b \sec (c+d x))^{4/3}} \, dx &=\frac {\int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{\sqrt [3]{b \sec (c+d x)}} \, dx}{b}\\ &=\frac {\int \frac {A+C \sec ^2(c+d x)}{\sqrt [3]{b \sec (c+d x)}} \, dx}{b}+\frac {B \int (b \sec (c+d x))^{2/3} \, dx}{b^2}\\ &=\frac {3 C \tan (c+d x)}{2 b d \sqrt [3]{b \sec (c+d x)}}+\frac {(2 A-C) \int \frac {1}{\sqrt [3]{b \sec (c+d x)}} \, dx}{2 b}+\frac {\left (B \left (\frac {\cos (c+d x)}{b}\right )^{2/3} (b \sec (c+d x))^{2/3}\right ) \int \frac {1}{\left (\frac {\cos (c+d x)}{b}\right )^{2/3}} \, dx}{b^2}\\ &=-\frac {3 B \cos (c+d x) \, _2F_1\left (\frac {1}{6},\frac {1}{2};\frac {7}{6};\cos ^2(c+d x)\right ) (b \sec (c+d x))^{2/3} \sin (c+d x)}{b^2 d \sqrt {\sin ^2(c+d x)}}+\frac {3 C \tan (c+d x)}{2 b d \sqrt [3]{b \sec (c+d x)}}+\frac {\left ((2 A-C) \left (\frac {\cos (c+d x)}{b}\right )^{2/3} (b \sec (c+d x))^{2/3}\right ) \int \sqrt [3]{\frac {\cos (c+d x)}{b}} \, dx}{2 b}\\ &=-\frac {3 B \cos (c+d x) \, _2F_1\left (\frac {1}{6},\frac {1}{2};\frac {7}{6};\cos ^2(c+d x)\right ) (b \sec (c+d x))^{2/3} \sin (c+d x)}{b^2 d \sqrt {\sin ^2(c+d x)}}-\frac {3 (2 A-C) \cos ^2(c+d x) \, _2F_1\left (\frac {1}{2},\frac {2}{3};\frac {5}{3};\cos ^2(c+d x)\right ) (b \sec (c+d x))^{2/3} \sin (c+d x)}{8 b^2 d \sqrt {\sin ^2(c+d x)}}+\frac {3 C \tan (c+d x)}{2 b d \sqrt [3]{b \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.14, size = 175, normalized size = 1.17 \begin {gather*} \frac {3 e^{-i d x} (b \sec (c+d x))^{2/3} (-i \cos (d x)+\sin (d x)) \left (-10 A \cos (c+d x)+5 C \cos (c+d x)+5 B \left (1+e^{2 i (c+d x)}\right )^{2/3} \, _2F_1\left (\frac {1}{3},\frac {2}{3};\frac {4}{3};-e^{2 i (c+d x)}\right )+(2 A-C) e^{i (c+d x)} \left (1+e^{2 i (c+d x)}\right )^{2/3} \, _2F_1\left (\frac {2}{3},\frac {5}{6};\frac {11}{6};-e^{2 i (c+d x)}\right )+5 i C \sin (c+d x)\right )}{10 b^2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {\sec \left (d x +c \right ) \left (A +B \sec \left (d x +c \right )+C \left (\sec ^{2}\left (d x +c \right )\right )\right )}{\left (b \sec \left (d x +c \right )\right )^{\frac {4}{3}}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}\right ) \sec {\left (c + d x \right )}}{\left (b \sec {\left (c + d x \right )}\right )^{\frac {4}{3}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{\cos \left (c+d\,x\right )\,{\left (\frac {b}{\cos \left (c+d\,x\right )}\right )}^{4/3}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________